#! /usr/bin/env python
#coding:utf-8


file='/home/guolt/status.txt'
def changeStatus(self,status):
    status=str(status)
    print "type: %s" %status
    status_file=open(self,'w')
    status_file.write(status)
    status_file.flush()
    status_file.close()


changeStatus(file,'3')
